﻿using WebApiClientCore;
using WebApiClientCore.Attributes;
using BPM.Web.Shared.Data;
using BPM.Web.Shared.Auth;
namespace BPM.Web.Shared.Service;

[TokenFilter]
public interface IExLogClient : IHttpApi
{
    /// <summary>
    /// 分页查询异常日志
    /// </summary>
    /// <param name="body"></param>
    /// <param name="token"></param>
    /// <returns></returns>
    [HttpGet("sysExLog/page")]
    ITask<XnRestfulResult<PageResult<ExLogOutput>>> PageAsync(ExLogPageInput body, CancellationToken token = default);

    /// <summary>
    /// 清空异常日志
    /// </summary>
    /// <param name="token"></param>
    /// <returns></returns>
    [HttpPost("sysExLog/delete")]
    ITask<XnRestfulResult<string>> DeleteAsync(CancellationToken token = default);
}
